.class Lcom/xingbook/xingbook/activity/p;
.super Ljava/lang/Object;

# interfaces
.implements Lcom/xingbook/park/ui/r;


# instance fields
.field final synthetic a:Lcom/xingbook/xingbook/activity/XingBookMainActivity;


# direct methods
.method constructor <init>(Lcom/xingbook/xingbook/activity/XingBookMainActivity;)V
    .locals 0

    iput-object p1, p0, Lcom/xingbook/xingbook/activity/p;->a:Lcom/xingbook/xingbook/activity/XingBookMainActivity;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public a()V
    .locals 3

    const/4 v2, 0x0

    iget-object v0, p0, Lcom/xingbook/xingbook/activity/p;->a:Lcom/xingbook/xingbook/activity/XingBookMainActivity;

    iget-object v0, v0, Lcom/xingbook/xingbook/activity/XingBookMainActivity;->a:Lcom/xingbook/park/c/a/d;

    invoke-virtual {v0}, Lcom/xingbook/park/c/a/d;->getSelectedIndex()I

    move-result v0

    iget-object v1, p0, Lcom/xingbook/xingbook/activity/p;->a:Lcom/xingbook/xingbook/activity/XingBookMainActivity;

    invoke-virtual {v1, v0}, Lcom/xingbook/xingbook/activity/XingBookMainActivity;->b(I)Z

    move-result v1

    if-eqz v1, :cond_1

    iget-object v0, p0, Lcom/xingbook/xingbook/activity/p;->a:Lcom/xingbook/xingbook/activity/XingBookMainActivity;

    invoke-static {v0, v2}, Lcom/xingbook/xingbook/activity/XingBookMainActivity;->a(Lcom/xingbook/xingbook/activity/XingBookMainActivity;I)V

    :cond_0
    :goto_0
    return-void

    :cond_1
    iget-object v1, p0, Lcom/xingbook/xingbook/activity/p;->a:Lcom/xingbook/xingbook/activity/XingBookMainActivity;

    invoke-virtual {v1, v0}, Lcom/xingbook/xingbook/activity/XingBookMainActivity;->c(I)Z

    move-result v1

    if-eqz v1, :cond_2

    iget-object v0, p0, Lcom/xingbook/xingbook/activity/p;->a:Lcom/xingbook/xingbook/activity/XingBookMainActivity;

    invoke-static {v0, v2}, Lcom/xingbook/xingbook/activity/XingBookMainActivity;->b(Lcom/xingbook/xingbook/activity/XingBookMainActivity;I)V

    goto :goto_0

    :cond_2
    iget-object v1, p0, Lcom/xingbook/xingbook/activity/p;->a:Lcom/xingbook/xingbook/activity/XingBookMainActivity;

    invoke-virtual {v1, v0}, Lcom/xingbook/xingbook/activity/XingBookMainActivity;->a(I)Z

    move-result v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/xingbook/xingbook/activity/p;->a:Lcom/xingbook/xingbook/activity/XingBookMainActivity;

    invoke-static {v0, v2}, Lcom/xingbook/xingbook/activity/XingBookMainActivity;->c(Lcom/xingbook/xingbook/activity/XingBookMainActivity;I)V

    goto :goto_0
.end method
